import { defineConfig } from 'vite';
import checker from 'vite-plugin-checker';

export default defineConfig({
  build: {
    lib: {
      entry: ['./src/index.ts', './src/bin.ts'],
      name: 'ExtractTS',
    },
    rollupOptions: {
      external: [
        'typescript',
        'fs',
        'path',
        'crypto',
        'module',
      ]
    }
  },
  plugins: [
    checker({
      typescript: true,
    }),
  ]
});
